/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.PhongBLL;
import edu.nii.qlks.DataTransferObject.PhongInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class PhongControl {

    PhongBLL PhongDA = new PhongBLL();
    
    public ArrayList LayDS(String condition, String oderby) throws Exception {
        return PhongDA.LayDS(condition, oderby);
    }

    public ArrayList LayDS(String condition) throws Exception {
        return PhongDA.LayDS(condition);
    }

    public ArrayList LayDS() throws Exception {
        return PhongDA.LayDS();
    }

    public void Insert(PhongInfo phongInfo) throws Exception {
        PhongDA.Insert(phongInfo);
    }

    public void Update(PhongInfo phongInfo) throws Exception {
        PhongDA.Update(phongInfo);
    }

    public void Delete(PhongInfo phongInfo) throws Exception {
        PhongDA.Delete(phongInfo);
    }

    public String TaoMaTuDong(String maGoc, int batDau) {
        return PhongDA.TaoMaTuDong(maGoc, batDau);
    }

    public ArrayList LayDonGiaPhong(String tenPhong) throws Exception {
        //return PhongDA.LayDonGiaPhong(tenPhong);
        return  null;
    }

    public void Update_TinhTrangPhong(String MaPhong, int isTinhTrangPhong) throws Exception {
        PhongDA.Update_TinhTrangPhong(MaPhong, isTinhTrangPhong);
    }

    public ArrayList LayDanhSachPhong() throws Exception {
        //return PhongDA.LayDanhsachPhong();
        return  null;
    }

    public ArrayList LayDS_TimKiem() throws Exception {
        //return PhongDA.LayDS_TimKiem();
        return  null;
    }

    public String[] LayTenLoaiPhong() throws Exception {
        return PhongDA.LayTenLoaiPhong();
    }

    public String[] LayTenPhong() throws Exception {
        return PhongDA.LayTenPhong();
    }

    public String[] LayDonGia(String s) throws Exception {
        return PhongDA.LayDonGia(s);
    }

    public String[] ChuyenTenLP_MaLoaiPhong(String s) throws Exception {
        return PhongDA.ChuyenTenLP_MaLoaiPhong(s);
    }

    public String[] ChuyenTenPhong_MaPhong(String s) throws Exception {
        return PhongDA.ChuyenTenPhong_MaPhong(s);
    }

    public ArrayList TimKiemPhong(PhongInfo phonginfo, String tenloaiphong, String tinhtrang) throws Exception {
        //return PhongDA.TimKiemPhong(phonginfo, tenloaiphong, tinhtrang);
        return  null;
    }
    
    
}
